package net.bithappens.hnqe.impl;

import net.bithappens.hnqe.graph.GraphValue;
import net.bithappens.hnqe.impl.cache.NamingConstants;

public class HNQEUtil {

	
	public static String createRelationElementIndexString(int index) {
		return "entry-"+index;
	}
	
	public static int extractIndexFromIndexString(String indexString) {
		return Integer.valueOf(indexString.substring(6));
	}
	
	
	public static String getValueTypeId(GraphValue graphValue){
		return NamingConstants.TYPE_ID_PREFIX + graphValue.getEntryValue().getValueType();
		
	}
		
}
